package com.xuzimian.globaldemo.designpatterns.proxy.dynamic.performance.handler;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;


public class JdkHandler implements InvocationHandler {
    private Object target;

    public JdkHandler(Object target) {
        this.target = target;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args)
            throws Throwable {
        Object result = method.invoke(target, args);
        return result;
    }
}
